/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.base;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.base.WorkTimeMapper;
public class WorkTime extends BatisPage
implements cn.javaxc.mvcwork.util.helper.IWorkTime
{
    @Autowired(required=false)
	private WorkTimeMapper mapper;
    
    public SQLList debugList=new SQLList();
    public SQLList getdebuglist(){
        return debugList;
    }
    
    /**
    获取第一天开始时间
    */
    
    public Object getfirsttime(Map map,String work_day,String time) {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.putAll(map);
        params.put("time",time);
        params.put("work_day",work_day);
        Object firsttime =mapper.firsttime(params);
        
        return firsttime;
    }
    /**
    获取每一天时间
    */
    
    public SQLList getdaytime(Map map,String work_day) {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.putAll(map);
        params.put("work_day",work_day);
        SQLList<SQLMap> daytime=mapper.daytime(params);
        
        return daytime;
    }
    /**
    获取最后一天结束时间
    */
    
    public SQLList getdaywork(Map map,String work_day) {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.putAll(map);
        params.put("work_day",work_day);
        SQLList<SQLMap> daywork=mapper.daywork(params);
        
        return daywork;
    }
}